Skip to content

Publish shared Focus provider and practice picker - #35

Merged
kualta merged 2 commits into
mainfrom
shared-focus
Sep 8, 2026
Merged

Publish shared Focus provider and practice picker#35
kualta merged 2 commits into
mainfrom
shared-focus

Conversation

@kualta

@kualta kualta commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Game and Talk duplicate the Focus session provider and Practice picker. Publish an opt-in @flow-industries/ui/focus entry point with an injected API/account boundary, controlled panel and picker, and localizable text. Use the published @flow-industries/id@0.22.0 primitives; existing UI entry points do not import Focus.

The provider clears private state on account changes, rejects stale completions, restores sessions and retains successful study data when a companion request fails. Hosts retain guest and embed policy. Includes an isolated lazy-loaded showcase and API documentation.

Validation:

  • bun run lint, bun run typecheck, bun run build.
  • Six focused Playwright cases: keyboard/session lifecycle, reload recovery, mutation retry, initial child loading, account isolation and partial-failure recovery.
  • Packed artifact installed with registry SDK 0.22.0; public exports, SSR and browser bundling checked.
  • Local Chrome /#focus: keyboard search/category/custom subject, start/pause/resume/finish, paused reload, guest/account privacy, error retry, 390px light/dark layout with no horizontal overflow. Console errors observed were wallet-extension errors, not application errors.
  • Simplify and independent code review completed; findings fixed and rechecked.

Release: UI 0.23.0 follows the concurrently published 0.22.0. Verify automatic publication before adopting in Talk/Game. Consumer handler, popup focus-restoration, embed and bundle-delta acceptance remains in those adoption PRs.

Also fixes the inherited success-text CI regression at the user's request: light green text now measures 5.24:1 on the soft green background (previously 2.47:1); dark styling is preserved. Both themes pass the contrast scan. Rendered and visually inspected updated component baselines using the pinned Linux Playwright image. Focus regression tests now run in the A11y workflow.

Fixes UI-50

https://plane.flow.industries/flow/browse/UI-50

Related to FLOW-12

https://plane.flow.industries/flow/browse/FLOW-12

@kualta
kualta merged commit 29bb194 into main Sep 8, 2026
4 checks passed
@kualta
kualta deleted the shared-focus branch September 8, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant